package com.meet.persist.dao;

import com.meet.persist.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    User findByUsername(String username);

    User findByUserId(String userId);

    User findByPhone(String phone);

    User findByEmail(String email);

    boolean insert(User user);

    boolean update(User user);

    List<String> findInterestTagsByUserId(String userId);

    boolean insertInterestTag(@Param("userId") String userId, @Param("tagName") String tagName);

    boolean deleteInterestTagsByUserId(String userId);
}
